from gluon.contrib.populate import populate
from app_settings import *
if not db(db.auth_user).count():
    db.auth_user.insert(
            username='admin',
            first_name='Admin',
            last_name='Admin',
            password='ae5be22d505db70b591e0aa5327671be2591e6426ef5579fb60d5152a507f58cc142b365a056bfbba4bd669f80bd7949d8182049cf985d9c495354b466968886')
if not db(db.settings).count():
    db.settings.insert(
            fb_app_id      = APP_ID,
            fb_app_secret  = APP_SECRET,
            fb_fan_page = FAN_PAGE,
            use_lander = True,
            lander = LANDER,
            header  = HEADER,
            footer  = FOOTER,
            invite_title = INVITE_TITLE,
            invite_message = INVITE_MESSAGE,
            force_count_title = FORCE_HEADER,
            force_count_number= FORCE_COUNT_NUMBER,
            force_message_before = FORCE_MESSAGE_BEFORE,
            force_message_after = FORCE_MESSAGE_AFTER,
            )
